<%@ page language="java" import="java.util.*,org.bluebee.billiardsbar.dao.*,org.bluebee.billiardsbar.dao.impl.*,java.sql.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>会员注册</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<meta http-equiv="refresh" content="5">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<style type="text/css">
<!--
	body {font-family: Arial, Helvetica, sans-serif;
			font-size:12px;color:#666666;background:#fff;
			text-align:center;}
	* {margin:0;padding:0;}
	a {color:#1E7ACE;text-decoration:none; }
	a:hover {color:#000;text-decoration:underline;}
	h3 {font-size:14px;font-weight:bold;}
	pre,p {color:#1E7ACE;margin:4px;}
	input, select,textarea {padding:1px;
							margin:2px;font-size:11px;}
	.buttom{padding:1px 10px;font-size:12px;
			border:1px #1E7ACE solid;background:#D0F0FF;}
	#formwrapper {width:450px;margin:15px auto;
					padding:20px;text-align:left;border:1px solid #A4CDF2;}
	fieldset {padding:10px;margin-top:5px;
			border:1px solid #A4CDF2;background:#fff;}
	fieldset legend {color:#1E7ACE;font-weight:bold;
			padding:3px 20px 3px 20px;border:1px solid #A4CDF2; 
			background:#fff;}
	fieldset label {float:left;width:120px;
			text-align:right;padding:4px;margin:1px;}
	fieldset div {clear:left;margin-bottom:2px;}
	input { width:120px;}
	.enter{ text-align:center;}
	.clear {clear:both;}
.STYLE1 {
	color: #e1e2e3;
	font-size: 12px;
}
.STYLE6 {color: #000000; font-size: 12; }
.STYLE10 {color: #000000; font-size: 12px; }
.STYLE19 {
	color: #344b50;
	font-size: 12px;
}
.STYLE21 {
	font-size: 12px;
	color: #3b6375;
}
.STYLE22 {
	font-size: 12px;
	color: #295568;
}
-->
</style>
<script>
function reloadcode(){
	var verify=document.getElementById('verifycodePic');
	verify.setAttribute('src','/billiardsbar/VerifyCode?'+Math.random());
}
</script>
  </head>
  
  <body>
    
		<fieldset>
			<legend>包间列表</legend>
			<p><strong>点击查看的包间名</strong></p>
			<div>
			<%
			String al=(String)request.getAttribute("errors");
			if(al!=null){
				out.println("<font color='red'><ul>");
				out.println("<li>" + al + "</li>");
				out.println("</ul></font>");
			}
			 %>
			</div>
			<table border="1px" width="100%" bordercolor="#000000" >
				<tr>
        			
        			<td width="75%" height="20" bgcolor="d3eaef" class="STYLE6"><div align="center"><span class="STYLE10">包间名</span></div></td>
        			<td width="25%" height="20" bgcolor="d3eaef" class="STYLE6"><div align="left"><span class="STYLE10">空/共</span></div></td>
        		</tr>
        		<%
					IRoomDao roomdao=new RoomDaoImpl();
					ArrayList<HashMap<String,Object>> list=roomdao.getRoomAllList();
					if(list!=null){
						for ( int i = 0; i < list.size(); i++ ) { 
							HashMap<String,Object> map = (HashMap<String,Object>)list.get(i);
							if(map!=null){
				%>
				
				<tr>
					<td><a href="main_capability/imgtablelist.jsp?roomid=<%if(map.get("ROOMID")!=null)out.print(map.get("ROOMID").toString());%>" target="mainframe"><span class="STYLE19"><%if(map.get("ROOMID")!=null)out.print(map.get("ROOMID").toString());%>&nbsp; - &nbsp;<%if(map.get("ROOMNAME")!=null)out.print(map.get("ROOMNAME").toString());%></span></a></td>
					<td><span class="STYLE19">0/<%if(map.get("TABLENUMBER")!=null)out.print(map.get("TABLENUMBER").toString());%></span></td>
				</tr>
				
				 <%			}
     					}
     				}%>
			</table>
</fieldset>


  </body>
</html>